package edu.yuhf.domain;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.yuhf.db.utils.ResultSetHandler;

public class EmpListMapper implements ResultSetHandler<List<Emp>> {

	@Override
	public List<Emp> handler(ResultSet rs) {
		List<Emp> list0=new ArrayList<Emp>();
		try {
			while(rs.next()) {
				try {
					while(rs.next()) {
						Emp emp=new Emp(rs.getInt(1),rs.getString(2),rs.getString(3),rs.getInt(4),rs.getDate(5).toLocalDate(),rs.getBigDecimal(6),rs.getBigDecimal(7),rs.getInt(8));
						list0.add(emp);
					}
				} catch (SQLException e) {
					e.printStackTrace();
				}
			}
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return list0;
	}

}
